package subnarines;
import javax.swing.*;
import java.util.Random;

public class Plane extends SeaObject{

    public Plane(){
        super(103,13);
        Random ran = new Random();
        y = ran.nextInt(height*2);
    }

    public void move(){
        x += speed;
    }

    public ImageIcon getImage(){
        return Images.plane;
    }

    public Resupply throwResupply(){
        return new Resupply(this.x,this.y);
    }

}
